<script setup lang="ts">
import { useTokenStore } from "@/store";
import  { useRouter  } from "vue-router";

const tokenStore = useTokenStore()
const router = useRouter()

if(tokenStore.token == null || tokenStore.token == ""){
   router.push("/login")
}

</script>

<template>
  <div class="container">
      <RouterView />
  </div>
</template>

<style scoped>
.container{
  padding: 0 !important;
  margin: 0 !important;
  width: 100vw;
  height: 100vh;
}
</style>
